<template>
    <div>
        <div class="crumbs">
            <el-breadcrumb separator="/">
                <el-breadcrumb-item>
                    <i class="el-icon-lx-calendar"></i> 表单
                </el-breadcrumb-item>
                <el-breadcrumb-item>基本表单</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <div class="container">
            <div class="form-box">
                <el-table class="table" :data="options" style="width: 100%;">
                    <el-table-column label="id" prop="value" align="center"></el-table-column>
                    <el-table-column label="label" prop="label" align="center"></el-table-column>
                    <el-table-column label="name" prop="name" align="center"></el-table-column>
                </el-table>
            </div>
            <div class="form-box">
                <el-table :data="name">
                  <el-table-column label="xx" prop="hhh"></el-table-column>
                </el-table>
            </div>
        </div>
    </div>
</template>

<script>
    import {
        gitlabList
    } from '@/utils/common.js';
    export default {
        name: 'baseform',
        data() {
            return {
                options: [{
                        value: 'guangdong',
                        label: '广东省',

                    }
                ],
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: true,
                    type: ['步步高'],
                    resource: '小天才',
                    desc: '',
                    options: []
                }
            };
        },
        mounted() {
            this.gitlabProjct()
        },
        methods: {
            async gitlabProjct() {
                await gitlabList(this.data).then(data => {
                    this.form.name = data
                    console.log(data)
                })

            },
            onSubmit() {
                this.$message.success('提交成功！');
            }
        }
    };
</script>

<style scoped>
    .form-box {
        margin-bottom: 20px;
    }

    .table {
        width: 100%;
        font-size: 14px;
    }
</style>